/*
 * ADC.h
 *
 * Created: 12.09.2012 16:42:37
 *  Author: mariuvi
 */ 

/*!
 * @header		ADC.h
 * @discussion	This file contains all declarations for the analog/digital converter.
*/		

#ifndef ADC_H_
#define ADC_H_


/*!
 * @function	ADC_init
 * @discussion	Initializes the ADC in freerunning mode and enables interrupt on
				conversion completion.  
 * @result		None.
 */	
void ADC_init();


/*!
 * @function	ADC_read
 * @discussion	Reads the value converted by the ADC from a private variable.
 * @param		ch		The channel to be read.
 * @result		The ADC value.
 */	
int ADC_read(int ch);


#endif /* ADC_H_ */